const express=require("express")
const app=express()

app.use((req,res,next)=>{
    req.startTime=Date.now()
    next()
})

app.get("/",(req,res)=>{
    console.log(`请求时间${req.startTime}`)
    res.send(`homepage,请求时间${req.startTime}`)
})


app.listen(80,()=>{
    console.log("running at server http://127.0.0.1")
})